<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var native = new XMLHttpRequest()
      native.open('GET', 'https://api.github.com/')
      native.send()
      native.onreadystatechange = function () {
        if (native.readyState == 4 && native.status == 200) {
          console.log(native.response)
        } else {
          console.log(native.status)
        }
      }
      native.abort()
    </script>
  </body>
</html>
